using System;
using System.Collections.Generic;
using System.Text;
using BusinessObjects.BO_Actions;
using Entity.StoreProcedure;
using BusinessObjects;
using System.Data;
namespace BusinessObjects.BO_GetObjects {
	public static class BO_portal_threads_tags {
		public static DataTable SelectAll() {
			try {
				usp_portal_threads_tags_select_all entity = new usp_portal_threads_tags_select_all();

				return BO_Actions<usp_portal_threads_tags_select_all>.ExecuteAndReturnDataTable(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
		public static DataTable SelectTop(int rows) {
			try {
				usp_portal_threads_tags_select_top entity = new usp_portal_threads_tags_select_top();
				entity.NUMBERRECORD = rows;

				return BO_Actions<usp_portal_threads_tags_select_top>.ExecuteAndReturnDataTable(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
		public static string Insert( Int64 thread_id, Int64 tag_id) {
			try {
				usp_portal_threads_tags_insert entity = new usp_portal_threads_tags_insert();
                entity.THREAD_ID = thread_id;
                entity.TAG_ID = tag_id;

				return BO_Actions<usp_portal_threads_tags_insert>.ExecuteAndReturnStringValue(entity);
			} catch (Exception ex) {
				throw ex;
			}
		}
	}
}

